import request from '@/utils/request'

// 列表
export function queryList(data) {
  return request({
    url: `/base/order-commission/index`,
    method: 'post',
    data
  })
}
// 日志
export function oplog(params) {
  return request({
    url: `/oplog/base.order-commission`,
    method: 'get',
    params
  })
}
// 平台佣金设置-启用禁用
export function commissionStatus(data) {
  return request({
    url: `/base/order-commission/status`,
    method: 'POST',
    data
  })
}
// 平台佣金设置-启用禁用
export function getDetail(params) {
  return request({
    url: `/base/order-commission/detail`,
    method: 'get',
    params
  })
}
//平台佣金设置-编辑
export function updateCommission(data) {
  return request({
    url: `/base/order-commission/update`,
    method: 'POST',
    data
  })
}
//平台佣金设置-创建
export function createCommission(data) {
  return request({
    url: `/base/order-commission/create`,
    method: 'POST',
    data
  })
}
//平台佣金设置-删除
export function commissionDelete(data) {
  return request({
    url: `/base/order-commission/delete`,
    method: 'POST',
    data
  })
}

